package com.guoxin.chapter3.threadlocal.threadlocal11;

/**
 * @author guoxin
 * @date 2019年8月23日
 */
public class Run {
	public static ThreadLocal<String> t1 = new ThreadLocal<>();

	public static void main(String[] args) {
		if (t1.get() == null) {
			System.out.println("从未放过值");
			t1.set("我的值");
		}
		System.out.println(t1.get());
		System.out.println(t1.get());
	}
}
